//
//  ClassModel.m
//  huashiedu
//
//  Created by oceans on 2018/8/27.
//  Copyright © 2018年 hema. All rights reserved.
//

#import "ClassModel.h"

@implementation ClassModel

- (instancetype)initWithDic:(NSDictionary *)dic {
    self = [super init];
    if (self) {
        __id = [dic[@"id"] integerValue];
        _name = [dic objectForKey:@"name"];
        _teacher = [dic objectForKey:@"teacher"];
        _thumb = [dic objectForKey:@"thumb"];
        _begintime = [dic objectForKey:@"begintime"];
        _price = [[dic objectForKey:@"price"] floatValue];
        _link = [dic objectForKey:@"link"];
        _finished = [dic objectForKey:@"finished"];
        _order = [dic objectForKey:@"order"];
    }
    return self;
}
@end
